import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "index",
      component: () =>import("@/views/index.vue"),
      children: [
        {
          path: "/building",
          name: "building",
          component: () =>import("@/views/building/BuildingList.vue"),

        },
        {
          path: "/room",
          name: "room",
          component: () =>import("@/views/building/Room.vue"),

        }
      ]
    },
  ],
});

export default router;
